package com.vancouver.knows.business.service.impl;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.vancouver.knows.business.bean.BusinessRateInfo;

/**
 * 星级评论解析
 * <p/>
 * Created by cxlin
 */
public class UserRateBusinessHandler extends ACheckableJsonParser {

	private BusinessRateInfo businessRateInfo;

	@Override
	protected void parserContent(JSONObject content) throws Exception {
		String rateResult = content.getString("rate_result");
		businessRateInfo = JSON.parseObject(rateResult, BusinessRateInfo.class);
	}

	public BusinessRateInfo getBusinessRateInfo() {
		return businessRateInfo;
	}

}
